<template>
  <div class="app">
    <h2>欢迎来到{{name}}学习</h2>
    <button @click="showTel">查看联系方式</button>
    <Person/>
  </div>
</template>

<script>
  import Person from './components/Person.vue'
  export default {
    name:'App',
    components:{Person},
    data() {
      return {
        name:'尚硅谷',
        tel:'10086'
      }
    },
    methods: {
      showTel(){
        alert(this.tel)
      }
    },
  }
</script>

<style>
  .app {
    background-color: skyblue;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px;
  }
</style>